<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{$pagetitle}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/admin/style/global.css" media="all">
</head>
<body>


  <form class="layui-form" action="{:url()}" method="post" style="padding-top: 10px;" onsubmit="return save_form2(this)" style="padding-top: 10px;">
    <div class="layui-form-item">
        <label class="layui-form-label">数据源</label>
        <div class="layui-input-block">
            {foreach $table as $v}
                <input type="checkbox" name="table_id[]" value="{$v.table_id}" title="{$v.name}" {if in_array($v['table_id'],config('search.table_id'))}checked{/if}>
            {/foreach}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序方式</label>
        <div class="layui-input-inline">
            <input type="text" value="{:config('search.order')}" name='order' autocomplete="off" class="layui-input">
        </div>
    </div>      
    <div class="layui-form-item">
        <label class="layui-form-label">每页显示</label>
        <div class="layui-input-inline">
            <input type="text" value="{:config('search.lencord')}" name='lencord' autocomplete="off" class="layui-input">
        </div>
    </div>        
	
	<div class="layui-form-item" style="margin-top:100px;">
		<div class="layui-input-block">
		  <button class="layui-btn" type="submit">保存</button>
		  <button type="reset" class="layui-btn layui-btn-primary close">关闭</button>
		</div>
	</div>
  </div>
	</form>
	
<div class="layui-card-body">
	<table class="layui-table export_result"></table>	
</div>
	
  <script src="/static/admin/layui/layui.js"></script>
  <script src="/static/js/jquery.min.js"></script>    
  <script src="/static/js/globals.js"></script>  
  <script>
  layui.config({
    base: '/static/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
    ,admin = layui.admin
    ,element = layui.element
	,form = layui.form;

  }); 
  </script>
</body>
</html>